package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the SUBMENU database table.
 * 
 */
@Entity
public class Submenu implements Serializable {
	private static final long serialVersionUID = 1L;
	private long submeniuid;
	private String content;
	private Timestamp createddate;
	private Timestamp deleteddate;
	private String isactive;
	private int priority;
	private String topmenuname;
	private Topmenu topmenu;
	private User user;

    public Submenu() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public long getSubmeniuid() {
		return this.submeniuid;
	}

	public void setSubmeniuid(long submeniuid) {
		this.submeniuid = submeniuid;
	}


	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}


	public Timestamp getCreateddate() {
		return this.createddate;
	}

	public void setCreateddate(Timestamp createddate) {
		this.createddate = createddate;
	}


	public Timestamp getDeleteddate() {
		return this.deleteddate;
	}

	public void setDeleteddate(Timestamp deleteddate) {
		this.deleteddate = deleteddate;
	}


	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}


	public int getPriority() {
		return this.priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}


	public String getTopmenuname() {
		return this.topmenuname;
	}

	public void setTopmenuname(String topmenuname) {
		this.topmenuname = topmenuname;
	}


	//bi-directional many-to-one association to Topmenu
    @ManyToOne
	@JoinColumn(name="TOPMENUID")
	public Topmenu getTopmenu() {
		return this.topmenu;
	}

	public void setTopmenu(Topmenu topmenu) {
		this.topmenu = topmenu;
	}
	

	//bi-directional many-to-one association to User
    @ManyToOne
	@JoinColumn(name="AUTHORID")
	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}